import lazyllm
import os

chat = lazyllm.OnlineChatModule(source='qwen',model='qwen-plus')
while True:
    query = input("query(enter 'quit' to exit): ")
    if query == "quit":
        break
    res = chat.forward(query)
    print(f"answer: {res}")
